package br.com.JZSolution.domineduplex.gui.menu.arquivoMenuItem;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

public class SairMenuItem extends JMenuItem {
	
	public SairMenuItem(String nome){
		this.setText(nome);
		this.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
	}
	
}
